package com.zrrd.exercises._02_oop.demo01;

/**
 * @author WanJl
 * @version 1.0
 * @title Employee
 * @description
 * @create 2023/10/21 17:11
 */
public class Employee {
    private String id;
    private String name;
    private String job;
    private String workContent;

    /**
     * 抽象方法，每个员工都有自己的工作方法，所以方法是抽象的。
     */
    public void work() {
        System.out.println("员工姓名："+getName()+"，工作岗位是："+getJob()+"，员工编号是："+getId()+"，工作内容是："+getWorkContent());
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getWorkContent() {
        return workContent;
    }

    public void setWorkContent(String workContent) {
        this.workContent = workContent;
    }
}
